package cn.ssj.dao;

import cn.ssj.entity.Admin;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by Administrator on 2017/9/1 0001.
 */
public interface AdminDao extends JpaRepository<Admin,Integer>{
    /**
     * 根据姓名和密码查询管理员
     * @param name      姓名
     * @param password 密码
     * @return
     */
    public Admin findAdminByNameAndPassword(String name, String password);
}
